import { reactive } from 'vue';

interface deskMenuItemBase {
  valueMap: Array<any> | null;
  key: symbol;
}

export default function importConfigFunction(param: any) {
  const staem = param.data;
  const base = reactive<deskMenuItemBase>({
    valueMap: null,
    key: Symbol(),
  });
  const init = () => {
    base.valueMap = staem;
  };
  return {
    base,
    init,
  };
}
